package com.itkjb.leisurely.resource.sys.model.vo;

import com.baomidou.mybatisplus.annotation.TableField;
import com.itkjb.leisurely.core.base.BaseModel;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotNull;

/**
 * <p>
 * 系统字典表
 * </p>
 *
 * @author itkjb.com
 * @since 2020-06-19
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@ApiModel(value="SysDictModel-模型", description="系统字典")
public class SysDictVO extends BaseModel {

    private static final long serialVersionUID=1L;

    private String id;

    /**
     * 字典标识（所属字典）
     */
    @ApiModelProperty(value = "字典标识（所属字典）")
    @NotNull(message = "字典标识不能为空")
    private String dictLabel;

    /**
     * 索引值
     */
    @ApiModelProperty(value = "索引值")
    @TableField("`key`")
    @NotNull(message = "字典索引不能为空")
    private String key;

    /**
     * 索引值对应名称
     */
    @NotNull(message = "字典值不能为空")
    @ApiModelProperty(value = "索引值对应名称")
    @TableField("`value`")
    private String value;

}
